import processing.core.*;
import controlP5.*;

public class TestCanvas extends ControlCanvas{
	float xPos;
	float yPos;
	Bang b;
	
	TestCanvas( int _xPos, int _yPos) {
		xPos = _xPos;
		yPos = _yPos;
		//b = Main.controlP5.addBang("Bang", (int)xPos, (int)yPos, 50, 50);
	}
	
	public void draw( PApplet theApplet ) {
		 //xPos = Main.l.absolutePosition().x;
		 //yPos = Main.l.absolutePosition().y;
		 theApplet.fill(128);
		 int circleRadius = 25;
		 theApplet.ellipse(theApplet.mouseX - xPos - circleRadius,theApplet.mouseY - yPos - circleRadius,2*circleRadius,2*circleRadius);
		 //b.setPosition(theApplet.mouseX, theApplet.mouseY);
	}

}
